// import com.alibaba.druid.sql.ast.expr.SQLCharExpr;
// import com.alibaba.druid.sql.dialect.mysql.visitor.MySqlASTVisitor;

#include "MySqlRaftMemberChangeStatement.h"
#include "../../../../ast/expr/SQLCharExpr.h"
#include "../../visitor/MySqlASTVisitor.h"

// @Override
void MySqlRaftMemberChangeStatement::accept0(MySqlASTVisitor_ptr visitor)
{
  if (visitor->visit(SharedObject(MySqlRaftMemberChangeStatement)))
  {
    acceptChild(visitor, shard);
    acceptChild(visitor, host);
    acceptChild(visitor, status);
  }
  visitor->endVisit(SharedObject(MySqlRaftMemberChangeStatement));
}

SQLCharExpr_ptr MySqlRaftMemberChangeStatement::getShard()
{
  return shard;
}

void MySqlRaftMemberChangeStatement::setShard(SQLCharExpr_ptr shard)
{
  this->shard = shard;
}

SQLCharExpr_ptr MySqlRaftMemberChangeStatement::getHost()
{
  return host;
}

void MySqlRaftMemberChangeStatement::setHost(SQLCharExpr_ptr host)
{
  this->host = host;
}

SQLCharExpr_ptr MySqlRaftMemberChangeStatement::getStatus()
{
  return status;
}

void MySqlRaftMemberChangeStatement::setStatus(SQLCharExpr_ptr status)
{
  this->status = status;
}

BOOL_ptr MySqlRaftMemberChangeStatement::isForce()
{
  return force;
}

void MySqlRaftMemberChangeStatement::setForce(BOOL_ptr force)
{
  this->force = force;
}

BOOL_ptr MySqlRaftMemberChangeStatement::isNoLeader()
{
  return noLeader;
}

void MySqlRaftMemberChangeStatement::setNoLeader(BOOL_ptr noLeader)
{
  this->noLeader = noLeader;
}
